/****** Object:  Table [dbo].[SyncData]    Script Date: 2021/5/19 18:25:32 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[SyncData](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[CreateTime] [datetime] NULL,
	[FirstSyncSucceTime] [datetime] NULL,
	[LastSyncSucceTime] [datetime] NULL,
	[State] [int] NOT NULL,
	[LastUpdateTime] [datetime] NULL,
	[IsSyncError] [bit] NOT NULL default 0,
	[ErrorMessage] [varchar](max) NULL,
	[ErrorStackTrace] [varchar](max) NULL,
	[SyncCount] [int] NOT NULL default 0,
	[SyncTime] [datetime] NULL,
	[CostTime] [int] NOT NULL default 0,
	[OrgNumber] [varchar](128) NULL,
	[Biz_KeyField] [varchar](128) NOT NULL default '',
	[Biz_JsonData] [varchar](max) NOT NULL default '',
	[Biz_Date] [datetime] NULL,
	[Biz_UpdateField] [varchar](max) NULL,
	[Biz_BillType] [varchar](2048) NOT NULL default '',
	[Biz_BillTypeName] [varchar](2048) NOT NULL default '',
 CONSTRAINT [PK_SyncData] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO


